package com.sg.service.impl;

import com.sg.bean.ClothingState;
import com.sg.dao.ClothingStateDao;
import com.sg.service.ClothingStateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lyx
 * 衣物状态业务逻辑实现
 */
@Service
public class ClothingStateServiceImpl implements ClothingStateService {
    @Autowired
    ClothingStateDao clothingStateDao;

    @Override
    public List<ClothingState> findAll() {
        return clothingStateDao.findAll();
    }

    @Override
    public ClothingState findById(int csId) {
        return clothingStateDao.findById(csId);
    }
}